package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.BuyTicket;
import pojo.Ticket;

import java.util.List;

public interface TicketMapper {
    List<BuyTicket> selectOneBuyTicketOfTicketNo(@Param("ticketNo")long ticketNo);

    List<Ticket> selectOneTicket(@Param("ticket")Ticket ticket);

    List<Ticket> selectAllTicketsOfUserNo(@Param("userNo")String userNo);

    List<Long> addOneTicket(@Param("ticket")Ticket ticket);

    void addOneBuyTicket(@Param("buyTicket")BuyTicket buyTicket);
}
